
//***********************************************
//
//      Filename: test.java
//
//        Author: wwb
//        Mails: 1274860621@qq.com
//        Create: 2018-06-13 16:24:42
// Last Modified: 2018-06-13 16:24:42
//***********************************************
import java.util.List;
import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        Calculate a = new Calculate();

        Scanner scan =new Scanner(System.in);
        System.out.println("请输入一个中缀表达式： ");
        String f =scan.nextLine();
        System.out.println(a.parse(a.zb(f)));
        System.out.print("计算结果为： ");
        System.out.print(a.suanshu(a.parse(a.zb(f))));
    }
}

